<template>
  <div class="nav">
    <div @click="back" class="back">
     <img src="../../../assets/img/Mall/icon/返回小箭头.svg" alt="">
    </div>
    <div class="title"></div>
    <div class="shop-car" @click="to_shopcart">
      <img src="../../../assets/img/Mall/icon/购物车.svg" alt="">
    </div>
  </div>
</template>

<script>

export default {
  name: '',
  data () {
    return {
      
    }
  },
  methods:{
   back(){
    this.$router.go(-1)
   },
   to_shopcart(){
     this.$router.push('/shopcart')
   }
}
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
 .nav{
   position: fixed;
   left: 0;
   right: 0;
   top: 0;
   z-index: 3;
  height: 44px;
  line-height: 44px;
  background-color: #eeeeee;
  display: flex;
 }
 .back{
   width: 50px;
   text-align: center;
 }
 .title{
   flex: 1;
 }
 .shop-car{
   width: 50px;
   text-align: center;
 }
</style>
